package com.liang.controller;

import com.liang.common.lang.Result;
import com.liang.service.CFileService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @name: CFileConroller
 * @author: 李昂
 * @date: 2021-03-25 15:13
 * @description：CFileConroller
 * @update: 2021-03-25 15:13
 */

@RestController
@RequestMapping("/file")
@AllArgsConstructor
public class CFileController {

    CFileService fileService;
    //根据类型  查看文件信息
    @GetMapping("/{type}")
    public Result getActivePictures(@PathVariable("type") String type) {
        return Result.succ(fileService.getFileMsgs(type));
    }


}
